package cn.edu.nju.askme.dao;

import java.util.List;

import cn.edu.nju.askme.model.Answer;

public interface IAnswerDAO {

	/* (non-Javadoc)
	 * @see cn.edu.nju.askme.dao.impl.IAnswerDAO#save(cn.edu.nju.askme.model.Answer)
	 */
	void save(Answer transientInstance);

	/* (non-Javadoc)
	 * @see cn.edu.nju.askme.dao.impl.IAnswerDAO#delete(cn.edu.nju.askme.model.Answer)
	 */
	void delete(Answer persistentInstance);

	/* (non-Javadoc)
	 * @see cn.edu.nju.askme.dao.impl.IAnswerDAO#findById(java.lang.Integer)
	 */
	Answer findById(java.lang.Integer id);

	/* (non-Javadoc)
	 * @see cn.edu.nju.askme.dao.impl.IAnswerDAO#findByExample(cn.edu.nju.askme.model.Answer)
	 */
	List<Answer> findByExample(Answer instance);

	/* (non-Javadoc)
	 * @see cn.edu.nju.askme.dao.impl.IAnswerDAO#findByProperty(java.lang.String, java.lang.Object)
	 */
	List findByProperty(String propertyName, Object value);

	/* (non-Javadoc)
	 * @see cn.edu.nju.askme.dao.impl.IAnswerDAO#findByContent(java.lang.Object)
	 */
	List<Answer> findByContent(Object content);

	/* (non-Javadoc)
	 * @see cn.edu.nju.askme.dao.impl.IAnswerDAO#findAll()
	 */
	List findAll();

	/* (non-Javadoc)
	 * @see cn.edu.nju.askme.dao.impl.IAnswerDAO#merge(cn.edu.nju.askme.model.Answer)
	 */
	Answer merge(Answer detachedInstance);

	/* (non-Javadoc)
	 * @see cn.edu.nju.askme.dao.impl.IAnswerDAO#attachDirty(cn.edu.nju.askme.model.Answer)
	 */
	void attachDirty(Answer instance);

	/* (non-Javadoc)
	 * @see cn.edu.nju.askme.dao.impl.IAnswerDAO#attachClean(cn.edu.nju.askme.model.Answer)
	 */
	void attachClean(Answer instance);

}